########################################
#
#
#
#
#

require File.join(File.expand_path(File.dirname(__FILE__)), 'base.rb')


#
def new_action name

	content = ruby_template 'action.rbt'
  	#puts content
  
  
  	result = create_file 'Action', "#{name}.php", content

end

#
def list_action()
  	# List all APIs.
end

#
def del_action name

	puts "Delete Action #{name}.\n"
end


# Main.
if $mode_name === Everest::ModeNew
	puts "Create Action '#{$module_name}'."
	new_action($module_name)
elsif $mode_name === Everest::ModeDelete
	puts "Delete Action '#{$module_name}'."
	del_action($module_name)
end




